html,body{
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: #fff;
}
/* 顶部 */
.header{
  border-bottom:1px solid #ddd;
  display: flex;
  /* justify-content: space-between; */
  line-height: 45px;
}
.header span{
  margin-left: 10px;
}
.header h3{
  text-align: center;
  font-weight: bold;
  flex:1;
}

/* 主体 */
.main{
  flex:1;
  overflow-y: scroll;
  
}
/* 购物车 */
.main .car-list{
  display: flex;
  flex-direction: column;
}
.main .car-list .car-item{
  display: flex;
  justify-content: space-between;
  padding: 5px;
  position: relative;
}
.main .car-list .car-item .checkbox{
  align-self: center;
}
.main .car-list .car-item .checkbox input {
 display: none;
}
.main .car-list .car-item .checkbox input+span{
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 1px solid #ccc;
  border-radius: 50%;
  outline: none;
  color: transparent;
  font-size: 14px;
  text-align: center;
  line-height: 16px;
  cursor: pointer;
}
.main .car-list .car-item .checkbox input[type="checkbox"]:checked +span {
  background-color: #E43130;
  border: 1px solid #E43130;
  border-radius: 50%;
  color:#fff;
  /* background-color: initial; */
}
.main .car-list .car-item .content{
  flex:1;
  display: flex;
  border-bottom:1px solid #ddd;
  padding: 10px;
  align-items: center;
}
.main .car-list .car-item .content .car-img{
  width: 22vw;
  height: 22vw;
  margin:0px 10px;
}
.main .car-list .car-item .content .car-img img{
  width: 100%;
}
.main .car-list .car-item .content .car-desc{
  flex:1;
}
.main .car-list .car-item .content .car-desc .name{
  line-height: 30px;
}
.main .car-list .car-item .content .car-desc .desc{
  color:#999BA1;
  font-size: 12px;
}
.main .car-list .car-item .content .car-desc .price{
 color: #E43130;
 font-size: 14px;
 font-weight: bold;
 margin-top: 12px;
}
.main .car-list .contorl{
  position: absolute;
  display: flex;
  bottom: 10px;
  right: 10px;
}
.main .car-list .contorl input{
  width: 25px;
  margin: 0 -1px;
  border:1px solid #666;
  text-align: center;
}
.main .car-list .contorl div{
  border:1px solid #666;
  width: 20px;
  text-align: center;
}
/* 底线 */
.bottom-line{
  display: flex;
  justify-content: space-between;
  padding-bottom: 10px;
  align-items: center;
}
.bottom-line .line{
  border-bottom:1px solid #ddd;
  flex:1;
  align-items: center;
  margin: 0px 5px;
}
.bottom-line .text{
  font-size: 12px;
  color:#333;
  margin: 0 5px;
}
/* 顶部购物车 */
.shop-car{
  display: flex;
  justify-content: space-between;
  border:1px solid #ddd;
  border-left: none;
  border-right:none;
  line-height: 35px;
 
}
.shop-car .checkbox input{
  display: none;
}
.shop-car .checkbox span{
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 1px solid #ccc;
  border-radius: 50%;
  outline: none;
  color: transparent;
  font-size: 14px;
  text-align: center;
  line-height: 16px;
  cursor: pointer;
  margin-left: 5px;
}
.shop-car .checkbox input:checked+span {
  background-color: #E43130;
  border: 1px solid #E43130;
  border-radius: 50%;
  color:#fff;
}
.shop-car .total{
  color:#666;
}
.shop-car .total span{
  color: #E43130;
}
.shop-car a{
  display: inline-block;
  height: 100%;
  line-height: 35px;
  background-color: #E43130;
  color:#fff;
  padding: 0 10px;
}
/* 尾部 */
.footer{
  display: flex;
  justify-content: space-between;
  height: 40px;
  background-color: #fff;
}
.footer div{
  /* background-color: blue; */
  flex:1;
}
.footer div a{
  text-decoration: none;
  display: flex;
  flex-direction: column;
}
.footer div span{
  text-align: center;
  line-height: 19px;
  color:#8b8b8b;
  font-size: 12px;
}
/* 底部导航激活样式 */
.footer div a.active span {
  color: #E43130 ;
  font-weight: 700;
}